//
//  PayMoneyNewDetailInfoTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/31.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PayMoneyNewDetailInfoTableViewCell.h"

@implementation PayMoneyNewDetailInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.totolMoneyLabel];
}

-(UILabel *)titleLabel
{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 13, WIDTH, 20)];
        _titleLabel.font = font(16);
        _titleLabel.textColor = SFM153;
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _titleLabel;
}

-(UILabel *)totolMoneyLabel
{
    if (_totolMoneyLabel == nil) {
        _totolMoneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 43, WIDTH, 25)];
        _totolMoneyLabel.font = font(24);
        _totolMoneyLabel.textColor = SFMColor(245.99, 109.99, 35.99);
        _totolMoneyLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _totolMoneyLabel;
}

-(void)send{
    self.titleLabel.text = @"广百物业八月份缴费通知单";
    self.totolMoneyLabel.text = @"共计：2000元";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
